Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented May 17, 2025

Description

This pull request refactors the logic for constructing release notes in scripts/main.ps1 to improve clarity and maintainability. The changes separate the handling of PR title and body into distinct blocks and ensure that notes are only added when they are non-empty.

Improvements to release notes construction:

  • Refactored the logic to initialize $notes as an empty string and append the PR title and body conditionally, instead of combining them in a single step. This improves readability and modularity.
  • Added a check to ensure that $notes is non-empty before appending it to the $releaseCreateCommand, preventing unnecessary arguments when no notes are provided.
  • Enhanced debugging output by including the constructed gh arguments for better traceability during execution.

@MariusStorhaug MariusStorhaug self-assigned this May 17, 2025
Copilot AI review requested due to automatic review settings May 17, 2025 15:48
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner May 17, 2025 15:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors how release notes are built in scripts/main.ps1 by splitting title and body handling into separate steps, ensuring notes are only passed when non-empty, and adding debug output of the final gh arguments.

  • Separate title and body concatenation into two distinct conditional blocks for clarity
  • Added check to only append --notes when $notes is non-empty, falling back to --generate-notes
  • Enhanced debugging by printing the constructed gh command arguments

@MariusStorhaug MariusStorhaug merged commit b4154c8 into main May 17, 2025
13 checks passed
@MariusStorhaug MariusStorhaug deleted the fixreleasenote branch May 17, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants